/* ====== GLOBAL STYLES ====== */
* {
  box-sizing: border-box;
}

body {
  height: 100vh;
  margin: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  background: radial-gradient(circle at center, #1a1a2e 0%, #0f0f1e 100%);
  font-family: 'Poppins', sans-serif;
}

/* ====== LOADER CONTAINER ====== */
.loader {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  width: 200px;
  height: 100px;
}

/* ====== CIRCLES ====== */
.circle {
  position: absolute;
  border-radius: 50%;
  width: 16px;
  height: 16px;
  background: linear-gradient(135deg, #fcfbfe, #e43754);
  box-shadow: 0 0 10px #e43754;
  animation: figureEight 1.5s linear infinite;
}

.circle:nth-child(2) {
  animation-delay: 0.1s;
  width: 13px;
  height: 13px;
  opacity: 0.8;
}

.circle:nth-child(3) {
  animation-delay: 0.2s;
  width: 11px;
  height: 11px;
  opacity: 0.6;
}

.circle:nth-child(4) {
  animation-delay: 0.3s;
  width: 10px;
  height: 10px;
  opacity: 0.5;
}

.circle:nth-child(5) {
  animation-delay: 0.4s;
  width: 10px;
  height: 10px;
  opacity: 0.4;
}

.circle:nth-child(6) {
  animation-delay: 0.5s;
  width: 10px;
  height: 10px;
  opacity: 0.3;
}

.circle:nth-child(7) {
  animation-delay: 0.6s;
  width: 10px;
  height: 10px;
  opacity: 0.25;
}

.circle:nth-child(8) {
  animation-delay: 0.7s;
  width: 10px;
  height: 10px;
  opacity: 0.2;
}

/* ====== ANIMATION ====== */
@keyframes figureEight {
  0%, 100% {
    transform: translate(0, 0);
  }
  12.5% {
    transform: translate(50px, -25px);
  }
  25% {
    transform: translate(100px, 0);
  }
  37.5% {
    transform: translate(50px, 25px);
  }
  50% {
    transform: translate(0, 0);
  }
  62.5% {
    transform: translate(-50px, -25px);
  }
  75% {
    transform: translate(-100px, 0);
  }
  87.5% {
    transform: translate(-50px, 25px);
  }
}
